import Vue from 'vue'
import App from './App.vue'

import './plugins/iview.js'
import store from './store'
import router from './router'
import config from './plugins/config.vue'

//HTTP请求插件
import {getRequest} from './plugins/api'
import {postRequest} from './plugins/api'
import {postSURequest} from './plugins/api'
import {deleteRequest} from './plugins/api'
import {putRequest} from './plugins/api'

Vue.config.productionTip = false

//全局HTTP定义
Vue.prototype.getRequest = getRequest;
Vue.prototype.postRequest = postRequest;
Vue.prototype.postSURequest = postSURequest;
Vue.prototype.deleteRequest = deleteRequest;
Vue.prototype.putRequest = putRequest;
Vue.prototype.config = config;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
